package com.surveillance.tests;

import java.util.ArrayList;
import java.util.StringTokenizer;

public class TestStringTocken {
	private static ArrayList<Integer> fromDateToDatesComponent(String date){
		ArrayList<Integer> dateComponents = new ArrayList<Integer>(); 
		StringTokenizer stringTokenizer = new StringTokenizer(date, "/");
		while(stringTokenizer.hasMoreTokens()){
			dateComponents.add(Integer.parseInt(stringTokenizer.nextToken()));
		}
		return dateComponents;
		
	}
	public static void main(String [] args){
		ArrayList<Integer> res = fromDateToDatesComponent("12/25/2013");
		for(int i=0;i<res.size();i++){
			System.out.println(res.get(i));
		}
	}

}
